package cz.spock.parser;

import java.util.List;

import cz.spock.parser.entity.RuleSet;

public interface ParserInterface {
    
    /**
     * main parser method
     * 
     * @param data - input text for parsing and transformation
     * @param rules - list of rule sets to be used for transformation
     * @return parsed and transformed text
     */
    public String parse(String data, List<RuleSet> rules);
    
    /**
     * main parser method
     * 
     * this method is equal to method parse(String data, List<RuleSet> rules) called with list of size 1
     * 
     * @param data - input text for parsing and transformation
     * @param rules - rule set to be used for transformation
     * @return parsed and transformed text
     */
    public String parse(String data, RuleSet rules);
       

}
